package com.example.demo.utils;

public class ObjectUtils {
    public static boolean isNull(String str) {
        return str == null;
    }

    public static boolean isNull(Integer num) {
        return num == null;
    }

    public static boolean isNotNull(String str) {
        return !isNull(str);
    }

    public static boolean isNotNull(Integer num) {
        return !isNull(num);
    }

    public static boolean isValid(String str) {
        return str != null && !"".equals(str.trim());
    }

    public static boolean isValid(Object str) {
        return str != null;
    }

    public static boolean isNotValid(String str) {
        return !isValid(str);
    }

    public static boolean isNotValid(Object str) {
        return !isValid(str);
    }
}
